<?php 
      include('inc/includes.php');
      if(@$dtferiado == '01/01/1970'){
        $dtferiado = "";
      }
      @$dtferiado = $dtferiado != '' ? date('d/m/Y', strtotime($dtferiado)) : '';
?>
<meta charset="utf-8">
<?php if($msg != "" ){ ?>
        <div class='alert alert-success'><?=@$msg?></div>  
<?}?>
<div style="width:800px" id='reservaForm'>
    <input type="hidden" id="base_url" value="<?=base_url()?>" />
    <form method="POST" action="<?=base_url()?>feriado/form/<?=@$idferiado?>" />
        <div class="input-group">
            <span class="input-group-addon">Data do Feriado</span>
            <input type="text" name="dtferiado" id="datepicker" style="width:246px" class="form-control" placeholder="" value="<?=@$dtferiado?>">
        </div>
        <br />
        <div class="input-group">
            <span class="input-group-addon">Descrição</span>
            <input type="text" name="descricao" style="width:246px" class="form-control" placeholder="" value="<?=@$descricao?>">
        </div>
        <br>        
        <input id="formAdd" name="add" type="submit" value="Confirma" class="btn btn-primary" role="button">
        <input id="formCancela" name="cancela" type="submit" value="Cancela" class="btn btn-primary" role="button">
    </form>
</div>